package cn.mulanbay.message.web.bean.request.message;

import cn.mulanbay.common.bean.PageSearch;
import cn.mulanbay.persistent.enums.MessageSendStatus;
import cn.mulanbay.persistent.enums.MessageSource;
import cn.mulanbay.persistent.query.Operator;
import cn.mulanbay.persistent.query.Query;

public class MessageSearch extends PageSearch {

    @Query(column = "source", op = Operator.EQ)
    private MessageSource source;

    @Query(column = "user_id", op = Operator.EQ)
    private Long userId;

    @Query(column = "send_status", op = Operator.EQ)
    private MessageSendStatus sendStatus;

    public MessageSource getSource() {
        return source;
    }

    public void setSource(MessageSource source) {
        this.source = source;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public MessageSendStatus getSendStatus() {
        return sendStatus;
    }

    public void setSendStatus(MessageSendStatus sendStatus) {
        this.sendStatus = sendStatus;
    }
}
